package com.ftg.shopping.sp_buyerinfo.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ftg.shopping.config.LayuiPage;
import com.ftg.shopping.sp_buyerinfo.entity.SpBuyerinfo;
import com.ftg.shopping.sp_buyerinfo.service.SpBuyerinfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api(description = "部门维护")
@RestController
@RequestMapping("/api/sp_buyerinfo")
public class SpbuyerinfoController {

    @Autowired
    SpBuyerinfoService deptinfoService;


        @ApiOperation("layui分页查询带模糊")
        @GetMapping("/page2")
        public LayuiPage<SpBuyerinfo> page2(@RequestParam int page, @RequestParam int limit, @RequestParam(required = false) String search){
               return deptinfoService.layuipage(page,limit,search);
    }
}
